package org.gameis.furtal.server.network.protocol;

import org.gameis.furtal.FurtalConstants;

/**
 * Created by IntelliJ IDEA.
 * User: zvoykish
 * Date: 27/1/12
 * Time: 1:11 PM
 */
public class HelloFilter implements MessageFilter {
    @Override
    public String process(String message) {
        if (message != null && message.startsWith(FurtalConstants.HELLO_MESSAGE)) {
            return FurtalConstants.HELLO_RESPONSE;
        } else {
            return null;
        }
    }
}
